home *** CD-ROM | disk | FTP | other *** search
/ Quarterdeck InternetSuite / Quarterdeck InternetSuite.iso / qsockpro.qip / CYCOR.MPS < prev    next >
Encoding:
Text File  |  1996-03-20  |  1.1 KB  |  58 lines

  1. # Quarterdeck Cycor Communications SLIP or PPP script
  2. # 10/25/95  M. Bryant II
  3.  
  4. STRING username
  5. STRING password
  6. STRING IPaddress
  7. STRING framing
  8.  
  9. # TRACE ON
  10.  
  11. SetTimeout 60
  12.  
  13. # Get username from access method
  14. CfgGetValue "Username" username
  15. IF result = 0 THEN
  16.     ABORT "Can't load Username from qdeck.ini"
  17. ENDIF
  18.  
  19. # get password from access method
  20. CfgGetValue "Password" password
  21. IF result = 0 THEN
  22.     ABORT "Can't load Password from qdeck.ini"
  23. ENDIF
  24.  
  25. # get framing from access method
  26. CfgGetValue "Framing" framing
  27. IF result = 0 THEN
  28.     ABORT "Can't load Framing (SLIP or PPP) from qdeck.ini"
  29. ENDIF
  30.  
  31. DELAY 2
  32.  
  33. CommWaitFor     "choice"
  34. IF framing = "MPSLIP" THEN
  35.     CommSend "2%r"
  36. ELSE
  37.     CommSend "3%r"
  38. ENDIF
  39.  
  40. CommWaitFor     "sername"
  41.     CommSend username
  42.     CommSend "%r"
  43.  
  44. CommWaitFor     "assword"
  45.     CommSend password
  46.     CommSend "%r"
  47.  
  48.  
  49. IF framing = "MPSLIP" THEN
  50.     CommWaitFor "our address is"
  51.     CommReadIPaddr IPAddress     # IP address should be next word
  52.     CfgSetValue    "IPAddress" IPaddress    # store the IP address
  53.     PRINT "IPAddress ="; IPAddress
  54. ENDIF
  55.  
  56. DELAY 2
  57. END
  58.